package com.saicyc.demo.domain;

import javax.persistence.*;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import com.saicyc.demo.utils.*;
import lombok.Data;


@Data
@Entity
@Table(name = "tb_keyword")
public class Keyword{

    public static final String TABLE_NAME = "tb_keyword";
    public static final String ALL_FIELD = "id,type,keyword,is_active,created_time,updated_time,created_by,created_username";

    @Id
    @Column(name = "id") 
    private Long id = 0L;

    @Column(name = "type") 
    private int type = 0;

    @Column(name = "keyword") 
    private String keyword = "";

    @Column(name = "is_active") 
    private Boolean isActive = false;

    @Column(name = "created_time") 
    private String createdTime = "";

    @Column(name = "updated_time") 
    private String updatedTime = "";

    @Column(name = "created_by") 
    private Long createdBy = 0L;

    @Column(name = "created_username") 
    private String createdUsername = "";


    public Keyword(){}
}